package com.kws.merchant.domain.vo;

import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import com.fasterxml.jackson.annotation.JsonFormat;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import java.io.Serializable;
import java.util.Date;

/**
 * @author : zhangbenting
 * @date : 2024/12/15 13:21
 * @Version: 1.0
 */
@Data
public class MerchantUserChatVo  implements Serializable {
    private static final long serialVersionUID = -32271946872006640L;

    @ApiModelProperty("id")
    private Long id;

    @ApiModelProperty("发送者")
    private Long sendUser;

    @ApiModelProperty("发送者姓名")
    private String sendUserName;

    @ApiModelProperty("接收者")
    private Long toUser;

    @ApiModelProperty("消息类型0安全与验证 1交易物流 2售后保障 3客服消息 4互动消息 5 系统消息")
    private Integer messageType;

    @ApiModelProperty("类型0平台 1商家")
    private Integer type;

    @ApiModelProperty("内容")
    private String content;

    @ApiModelProperty("文件")
    private String file;

    @TableField(fill = FieldFill.INSERT)
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GTM+8")
    @ApiModelProperty("创建时间")
    private String createTime;

    @ApiModelProperty("内容类型0文本 1文件、图片")
    private Integer contentType;

    @ApiModelProperty("状态0已读 1未读")
    private Integer status;

    @ApiModelProperty("可用状态：0-不可用，1-可用")
    private String enable;
}
